<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2011 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    piwik_analyser 
 * @license    LGPL 
 * @filesource
 */


/**
 * Class piwik_analyser_module_usersmanager
 *
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    Controller
 */
class piwik_analyser_module_usersmanager extends frontend
{
	private $functions;
	
	public function __construct()
	{
		$this->import('Database');
		$this->import('Input');
		$this->functions = new piwik_analyser_functions();
	}
	
	public function getFunctions($currentFunction)
	{
		$strFunctions='';
		$strFunctions.='<option value="usersmanager.setuserpreference"';if($currentFunction=='usersmanager.setuserpreference'){$strFunctions.=' selected="selected"';}$strFunctions.='>setUserPreference (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuserpreference"';if($currentFunction=='usersmanager.getuserpreference'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUserPreference (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getusers"';if($currentFunction=='usersmanager.getusers'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUsers (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuserslogin"';if($currentFunction=='usersmanager.getuserslogin'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUsersLogin (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuserssitesfromaccess"';if($currentFunction=='usersmanager.getuserssitesfromaccess'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUsersSitesFromAccess (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getusersaccessfromsite"';if($currentFunction=='usersmanager.getusersaccessfromsite'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUsersAccessFromSite (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuserswithsiteaccess"';if($currentFunction=='usersmanager.getuserswithsiteaccess'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUsersWithSiteAccess (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getsitesaccessfromuser"';if($currentFunction=='usersmanager.getsitesaccessfromuser'){$strFunctions.=' selected="selected"';}$strFunctions.='>getSitesAccessFromUser (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuser"';if($currentFunction=='usersmanager.getuser'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUser (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.getuserbyemail"';if($currentFunction=='usersmanager.getuserbyemail'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUserByEmail (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.adduser"';if($currentFunction=='usersmanager.adduser'){$strFunctions.=' selected="selected"';}$strFunctions.='>addUser (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.updateuser"';if($currentFunction=='usersmanager.updateuser'){$strFunctions.=' selected="selected"';}$strFunctions.='>updateUser (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.deleteuser"';if($currentFunction=='usersmanager.deleteuser'){$strFunctions.=' selected="selected"';}$strFunctions.='>deleteUser (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.userexists"';if($currentFunction=='usersmanager.userexists'){$strFunctions.=' selected="selected"';}$strFunctions.='>userExists (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.useremailexists"';if($currentFunction=='usersmanager.useremailexists'){$strFunctions.=' selected="selected"';}$strFunctions.='>userEmailExists (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.setuseraccess"';if($currentFunction=='usersmanager.setuseraccess'){$strFunctions.=' selected="selected"';}$strFunctions.='>setUserAccess (Not implemented)</option>';
		$strFunctions.='<option value="usersmanager.gettokenauth"';if($currentFunction=='usersmanager.gettokenauth'){$strFunctions.=' selected="selected"';}$strFunctions.='>getTokenAuth (Not implemented)</option>';
		return $strFunctions;
	}
	
	public function getQueryCode($function)
	{
		switch($function)
		{
			case 'usersmanager.setuserpreference':
				break;
			case 'usersmanager.getuserpreference':
				break;
			case 'usersmanager.getusers':
				break;
			case 'usersmanager.getuserslogin':
				break;
			case 'usersmanager.getuserssitesfromaccess':
				break;
			case 'usersmanager.getusersaccessfromsite':
				break;
			case 'usersmanager.getuserswithsiteaccess':
				break;
			case 'usersmanager.getsitesaccessfromuser':
				break;
			case 'usersmanager.getuser':
				break;
			case 'usersmanager.getuserbyemail':
				break;
			case 'usersmanager.adduser':
				break;
			case 'usersmanager.updateuser':
				break;
			case 'usersmanager.deleteuser':
				break;
			case 'usersmanager.userexists':
				break;
			case 'usersmanager.useremailexists':
				break;
			case 'usersmanager.setuseraccess':
				break;
			case 'usersmanager.gettokenauth':
				break;
			default:
				break;
		}
	}
	
	public function processFunction($function)
	{
		switch($function)
		{
			case 'usersmanager.setuserpreference':
				break;
			case 'usersmanager.getuserpreference':
				break;
			case 'usersmanager.getusers':
				break;
			case 'usersmanager.getuserslogin':
				break;
			case 'usersmanager.getuserssitesfromaccess':
				break;
			case 'usersmanager.getusersaccessfromsite':
				break;
			case 'usersmanager.getuserswithsiteaccess':
				break;
			case 'usersmanager.getsitesaccessfromuser':
				break;
			case 'usersmanager.getuser':
				break;
			case 'usersmanager.getuserbyemail':
				break;
			case 'usersmanager.adduser':
				break;
			case 'usersmanager.updateuser':
				break;
			case 'usersmanager.deleteuser':
				break;
			case 'usersmanager.userexists':
				break;
			case 'usersmanager.useremailexists':
				break;
			case 'usersmanager.setuseraccess':
				break;
			case 'usersmanager.gettokenauth':
				break;
			default:
				break;
		}
	}
}

?>